// /sys/reportUser/list
import request from '@/utils/httpRequest'

// 获取所有用户举报
// limit
// page
export function getALLUserReport(query) {
  return request({
    url: '/sys/reportUser/list',
    method: 'get',
    params: query
  })
}

// 获取用户举报详情
// limit
// page
// /sys/reportUser/info/1
export function getUserDetailReport(query) {
  return request({
    url: '/sys/reportUser/info/' + query,
    method: 'get'
  })
}

// 修改用户举报信息
// limit
// page
export function editUserReport(query) {
  return request({
    url: '/sys/reportUser/update',
    method: 'post',
    data: request.adornData(query)
  })
}

// 删除敏感字
// ids
export function userReportDel(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/reportUser/delete',
    method: 'post',
    data: request.adornData(query, false)
  })
}

